import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import loading from '../views/loading.vue'
import bottons from '../views/bottons.vue'
import loglist from '../views/loglist.vue'
import translist from '../views/translist.vue'
import collectbottons from '../views/collectbottons.vue'
import addlog from '../views/addlog.vue'
import addtrans from '../views/addtrans.vue'
import chart from '../views/chart.vue'
import listbottons from '../views/listbottons.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/loading',
    component: loading
  },
  {
    path: '/bottons',
    component: bottons
  },
  {
    path: '/loglist',
    component: loglist
  },
  {
    path: '/translist',
    component: translist
  },
  {
    path: '/collectbottons',
    component: collectbottons
  },
  {
    path: '/addlog',
    component: addlog
  },
  {
    path: '/addtrans',
    component: addtrans
  },
  {
    path: '/chart',
    component: chart
  },
  {
    path: '/listbottons',
    component: listbottons
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router